package com.fessc.develop.utils;

import com.alibaba.fastjson.serializer.JSONSerializer;
import com.alibaba.fastjson.serializer.ObjectSerializer;

import java.io.IOException;
import java.lang.reflect.Type;

/**
 * 银行代码国别代码转换为结算中心代码
 */

public class NatInverse implements ObjectSerializer {
    @Override
    public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException {
        serializer.write(BusiUtil.getEnumDatavalue((String)object, "NAT"));  //国别转换，银行代码转换为结算中心代码
    }
}
